package com.wirelesstransfer.AsyncTasks;

import android.os.AsyncTask;
import android.widget.TextView;

public class UpdateConnectionStatus extends AsyncTask<String, String, String> {
	
	TextView ip_value_txt = AsyncTaskElements.ip_value_txt;
	TextView code_value_txt = AsyncTaskElements.code_value_txt;

	@Override
	protected String doInBackground(String... values) {
		// values contains ip (0) and code (1).

		publishProgress(values[0], values[1]);

		return null;
	}

	protected void onProgressUpdate(String... values){
		System.err.println("Updating IP/CODE.");
		// values contains parameters from publishProgress.
		
		ip_value_txt.setText(values[0]);
		code_value_txt.setText(values[1]);
	}

}